#ifndef SINGLEDB_H
#define SINGLEDB_H


#include<QDebug>

#include "sqlite3.h"

class Singledb
{
public:
   static Singledb* db;
   static Singledb* getInstance();//new
   void releaseInstance();//释放
   void openDB(char* str);//打开数据库
   void closeDB();//关闭数据库
   sqlite3 *psqlite;

   sqlite3 *getPsqlite() const;

private:
   Singledb();
   ~Singledb();
};

#endif // SINGLEDB_H
